var initUserAreaInfoSearchPage = function(){
	jQuery('#ligerCollectStateSearcher').ligerComboBox({
		data:collectUserRenderData,
		valueField:'value',
		textField:'text',
		valueFieldID:'collectStateSearcher'
	});
};

var getUserAreaInfoSearchParams = function(){
	var userareainfoBean = {};
	var temp;
	temp = jQuery('#userIdSearcher').val();
	if(temp){
		userareainfoBean.userId = temp;
	}
	temp = jQuery('#areaIdSearcher').val();
	if(temp){
		userareainfoBean.areaId = temp;
	}
	temp = jQuery('#orderIdSearcher').val();
	if(temp){
		userareainfoBean.orderId = temp;
	}
	temp = jQuery('#collectIdSearcher').val();
	if(temp){
		userareainfoBean.collectId = temp;
	}
	temp = jQuery('#collectStateSearcher').val();
	if(temp){
		userareainfoBean.collectState = temp;
	}
	temp = jQuery('#stateSearcher').val();
	if(temp){
		userareainfoBean.state = temp;
	}
	temp = jQuery('#floorSearcher').val();
	if(temp){
		userareainfoBean.floor = temp;
	}
	temp = jQuery('#roomSearcher').val();
	if(temp){
		userareainfoBean.room = temp;
	}
	return userareainfoBean;
}

jQuery(function(){
	initUserAreaInfoSearchPage();
	jQuery('#searchUserAreaInfo').click(function(){
		userareainfoManager.loadServerData(getUserAreaInfoSearchParams());
	});
});


